<%@ Page Theme="BlueSkin" Title="LMS : Admin --> Courses --> Edit Courses" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="CoursesEN.aspx.cs" Inherits="CoursesEN" ValidateRequest="false" %>














<%@ Register src="FoldersControlEN.ascx" tagname="FoldersControlEN" tagprefix="uc1" %>














<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
    
    
    
   


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
               <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
        
        
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
                Admin --> <a href="CoursesViewEN.aspx">Courses</a> --> Edit Courses
            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidthWithMargins  direction" style="margin-bottom:10px;margin-left:30px;margin-right:30px;font-size:14px;">
       
       
               
        
       
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblParent" runat="server" Text="Course type : "></asp:Label>
        </div>
        
        
       
       <uc1:FoldersControlEN ID="fc1" runat="server"    />
       
       <div class="clearing" ></div>
       
           <asp:CustomValidator ID="cvFolder" runat="server" 
            ErrorMessage="Error you must choose a folder to save course in" 
            onservervalidate="cvFolder_ServerValidate">Error you must choose a folder to save course in</asp:CustomValidator>
       
       <div class="clearing" style="width:1px;height:30px;">
           
        </div>
       
       
       <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblCourseNameAR" runat="server" Text="Arabic Name *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtCourseNameAR" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <%--<asp:RequiredFieldValidator ID="rfvCourseNameAR" runat="server" ErrorMessage="You must enter an Arabic name" ControlToValidate="txtCourseNameAR">*</asp:RequiredFieldValidator>--%>
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
       
       
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblCourseNameEN" runat="server" Text="English Name *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtCourseNameEN" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <%--<asp:RequiredFieldValidator ID="rfvCourseNameEN" runat="server" ErrorMessage="You must enter an English name" ControlToValidate="txtCourseNameEN">*</asp:RequiredFieldValidator>--%>
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblTargetAR" runat="server" Text="Arabic Target" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtTargetAR" runat="server" Text="" style="width:250px;height:100px;" TextMode="MultiLine" ></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
       
        <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblTargetEN" runat="server" Text="English Target" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtTargetEN" runat="server" Text="" style="width:250px;height:100px;" TextMode="MultiLine" ></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblOutlineAR" runat="server" Text="Arabic Outline" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtOutlineAR" runat="server" Text="" style="width:250px;height:100px;" TextMode="MultiLine" ></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblOutlineEN" runat="server" Text="English Outline" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtOutlineEN" runat="server" Text="" style="width:250px;height:100px;" TextMode="MultiLine" ></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        


         <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblObjectivesAR" runat="server" Text="Arabic Objectives" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtObjectivesAR" runat="server" Text="" style="width:250px;height:100px;" TextMode="MultiLine" ></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>



         <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblObjectivesEN" runat="server" Text="English Objectives" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtObjectivesEN" runat="server" Text="" style="width:250px;height:100px;" TextMode="MultiLine" ></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           
        </div>





        <!-- Duration -->
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblDuration" runat="server" Text="Duration" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtDuration" runat="server" Text="" style="width:250px;"  ></asp:TextBox>
           
        </div>  
       <div class="floating aligning direction" >
           <asp:CustomValidator ID="cvDuration" runat="server" ErrorMessage="The duration is not in the legal format (HH:mm:ss) or (mm:ss) or (ss)" OnServerValidate="cvDuration_ServerValidate">*</asp:CustomValidator>
        </div>

        <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label  runat="server" Text="Degree of success" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtDegree" runat="server" Text="75" style="width:250px;"  ></asp:TextBox>
           
        </div>  
       <div class="floating aligning direction" >
           <asp:CustomValidator ID="cvDegree" runat="server" 
               ErrorMessage="The degree must be a number between 0 and 100" 
               onservervalidate="cvDegree_ServerValidate" >*</asp:CustomValidator>
        </div>


        <div class="clearing" style="width:1px;height:10px;"></div>
       
      
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblLanguageIDHead"  runat="server" Text="Language" ></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:DropDownList ID="ddlLanguage" runat="server" Width="245px">
           </asp:DropDownList>
        </div>


        
        <div class="clearing" style="width:1px;height:10px;"></div>
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblPath" runat="server" Text="Course File (ZIP)" ></asp:Label>
        </div>        
         
       <div class="floating aligning direction" style="width:250px;">
           <div class="floating" style="width:250px;font-size:12px;">
                <asp:HyperLink ID="hlPath"  runat="server" style="width:250px;"></asp:HyperLink>
                <asp:TextBox
                    ID="txtPath" runat="server" style="display:none;" Text=""></asp:TextBox>
                <div class="clearing" ></div>
           </div>
           <div class="clearing" ></div>
           <div class="floating" style="width:250px;">
                <asp:FileUpload ID="fuPath" runat="server" style="width:250px;" />
                <div class="clearing" ></div>
           </div>
           <div class="clearing" ></div>
        </div>  
       <div class="floating aligning direction" >
          <asp:RequiredFieldValidator ID="rfvPath" runat="server" ErrorMessage="Error , you must set the course file" ControlToValidate="fuPath">*</asp:RequiredFieldValidator>
        </div>
        
        
        <div class="clearing" style="width:1px;height:10px;"></div>
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblDateOfCreationg" runat="server" Text="Date of creation" ></asp:Label>
        </div>        
         
       <div class="floating aligning direction" style="width:250px;">
           
            <asp:Label ID="lblDateOfCreationValue"  runat="server" style="width:250px;"></asp:Label>
                
           
        </div>  
       <div class="floating aligning direction" >
           
        </div>
        
        
        <div class="clearing" style="width:1px;height:30px;"></div>
        
        <div class="floating direction" style="width:500px;text-align:right">
            
            <div style="float:right;"><asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/></div>
            <div style="float:right;font-size:1px;width:5px;height:1px;"></div>
            <div style="float:right;"><asp:Button ID="btnDelete" runat="server" Text="Delete" 
                OnClientClick="javascript:return confirm('Are you sure , you want to delete this course ?');" 
                onclick="btnDelete_Click" style="height: 26px" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/></div>
            
            <div style="float:right;font-size:1px;width:5px;height:1px;"></div>
            
            <div style="float:right;">
                <asp:HyperLink ID="lnkBack" runat="server" NavigateUrl="~/LmsWebSite/CoursesViewEN.aspx">Back</asp:HyperLink>
            
            </div>
            
            <div class="clearing"></div>
            
        
        </div>
        
        <div class="clearing" style="width:1px;height:10px;"></div>
        
        
        <div class="floating alinging direction" style="width:500px;">
            <asp:ValidationSummary ID="vs1" runat="server" />
           <br />
            <asp:Label ID="lblError" EnableViewState="false" runat="server" Text="" ForeColor="Red" Width="100%"></asp:Label>
           <br />
           <asp:Label ID="lblResult" EnableViewState="false" runat="server" Text="" ForeColor="Green" Width="100%"></asp:Label>
        
        
        </div>
            
        
        
        
        <div class="clearing" style="margin-bottom:200px;">
            
        </div>
       
       
       
       
    </div>
    
    
    
    
        
    
    
        </ContentTemplate>
        
        
        <Triggers>
            <asp:PostBackTrigger ControlID="btnSave" />
        </Triggers>
        
        </asp:UpdatePanel>





</asp:Content>

